/**
 *Parent class of a Player 
 */
var Player = Class.extend({
	init: function(parent, index, name, position, x,y, isHuman){
		this.game = parent;
		this.name = name;
		this.index = index;
		this.score=0;
		this.hand = [];
		this.tempHand = [];
		this.position = position;
		this.isHuman = isHuman;
		this.ready = false;
		this.turn = false;
		this.pass = false;
		this.noCardsLeft = false;
		this.done = false;
		this.cardX = x;
		this.cardY = y
	},
	addCard: function(card){
		this.hand.push(card);
	},
	removeCard: function(card){
		this.hand.splice(card, 1);
	},
});


/*
function Player(name, position, isHuman){
	this.name = name;
	this.score = 0;
	this.hand = []; //List of the cards in the hand
	this.tempHand = [];
	this.position = position;
	this.isHuman = isHuman;
}

Player.prototype.addCard = function(card) {
	this.hand.push(card);
}

Player.prototype.removeCard = function(card) {
	this.hand.splice(card,1);
}*/

/**GET***SET**/
/*Player.prototype.getName = function(){
	return this.name;
}
Player.prototype.getScore = function(){
	return this.score;
}
Player.prototype.getHand = function(){
	return this.hand;
}
Player.prototype.getPosition = function(){
	return this.position;
}
Player.prototype.isHuman = function(){
	return this.isHuman;
}

Player.prototype.addScore = function(score){
	this.score += score;
}
Player.prototype.setPosition = function(position){
	this.position = position;
}*/
